<template>
  <div class="home">
    <router-view class="home_count"></router-view>
    <van-tabbar route active-color="#ee0a24" inactive-color="#000">
      <van-tabbar-item replace to="/index" icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/classPage" icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item replace to="/cart" icon="shopping-cart-o">购物车</van-tabbar-item>
      <van-tabbar-item replace to="/user" icon="manager-o">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { ref } from 'vue';
export default {
  name: "Home",
  components: {},
  setup(props) {
    // const active = ref(0);
    return{
      
    }
  }
};
</script>
<style lang="scss" scoped>
  .home{
    height: 100%;
    background: #e9e9e9;
    .home_count{
      height: calc(100% - 50px);
      overflow: auto;
    }
  }
</style>
